import json

# 读取 s1.json 文件
with open("src/python_mcp/s1.json", "r") as file:
    data = json.load(file)

# 提取 links 并去重，同时过滤掉没有 .html 的链接
links = [link for link in set(data["json"][0]["links"]) if ".html" in link]

# 打印 links 类型和内容
print("去重并过滤后的 Links 类型:", type(links))
print("去重并过滤后的 Links 内容:")
for link in links:
    print(link)
